package Factories;

import DAO.InterfaceDAO.AdministrateurDAO;
import DAO.InterfaceDAO.ClasseDAO;
import DAO.InterfaceDAO.CompteDAO;
import DAO.InterfaceDAO.CourDAO;
import DAO.InterfaceDAO.EtudiantDAO;
import DAO.InterfaceDAO.ExerciceDAO;
import DAO.InterfaceDAO.LibraryDAO;
import DAO.InterfaceDAO.ProfesseurDAO;
import DAO.InterfaceDAO.ResultatDAO;

public abstract class FactoryDAO {

	public static FactoryDAO getInstance(String methode) {
		if(methode == "MYSQL") {
			return FactoryMySqlDAO.getInstance();
		} else if(methode == "DEFAULT") {
			return FactoryMySqlDAO.getInstance();
		} else if(methode == "" || methode == null) {
			return FactoryMySqlDAO.getInstance();
		} else {
			return null;
		}
	}

	public abstract AdministrateurDAO createAdminDAO();
	public abstract ClasseDAO createClasseDAO();
	public abstract CompteDAO createCompteDAO();
	public abstract LibraryDAO createLibDAO();
	public abstract EtudiantDAO createEtudDAO();
	public abstract ProfesseurDAO createProfDAO();
	public abstract ResultatDAO createResultatDAO();
	public abstract CourDAO createCourDAO();
	public abstract ExerciceDAO createExerciceDAO();

}
